package com.bjl.dao;

import com.bjl.entity.Deal;
import orm.base.baseImp.BaseDaoInterface;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2017/11/22.
 */
public interface DealDao extends BaseDaoInterface {

    /**
     * 查询单个用户的总积分
     * @param map
     * @return
     * @throws Exception
     */
    public abstract String getSingleUserTotal(Map map) throws Exception;

    /**
     * 查询所有用户的积分
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> getUserTotal(Map map) throws Exception;

    /**
     * 查询每小时用户数
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryUserCountByPerHour(Map map) throws Exception;

    /**
     * 查询用户所有投注信息(按照房间查询)
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryAllIntegralRoom(Map map) throws Exception;

    /**
     * 查询当前用户投注信息
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryUserIntegralRoom(Map map) throws Exception;

    /**
     * 查询当前局数总积分
     * @param map
     * @return
     * @throws Exception
     */
    public abstract Map querySingleIssueAccount(Map map) throws Exception;

    /**
     * 验证是否中奖
     * @param map
     * @return
     * @throws Exception
     */
    public abstract Deal checkIsWin(Map map) throws Exception;

    /**
     * 查询总表
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryAllDataInfo(Map map) throws Exception;

    /**
     * 房间概览
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryRoomsDataInfo(Map map) throws Exception;

    /**
     * 用户概览
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Map> queryUserDataInfo(Map map) throws Exception;
}
